const private = require('./private/private')
// 把最后更改时间更改为 中国地区的样式
const moment = require('moment');
moment.locale("zh-cn") //显示中国的时间格式

module.exports = {
  title: "学易网",
  description: "在线博客...",
  head: [
    ['meta', { name: "baidu_union_verify", content: "a0036ccf0b657813fb236f80f376c429" }],
    ["link", { rel: "icon", href: "/images/xueyiwang.svg" }],
    ['meta', { name: 'Keywords', content: '唐先生,唐先生的主页' }],
    // 作者
    ['meta', { name: 'author', content: '唐先生' }],
    // 百度统计
    ['script', {}, `var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?668842dc21c1b8f215b000531ec8f69e";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();`],
    ['script', { src: "/utils/js/jq3.5.1.js" }, ``],
    ['script', { src: "/utils/js/click.js" }, ``],
  ],
  theme: "reco",
  themeConfig: {
    // 博客配置
    type: "blog",
    fullscreen: true,
    logo: "/images/xueyiwang.svg",
    blogConfig: {
      category: {
        location: 2,     // 在导航栏菜单中所占的位置，默认2
        text: '分类' // 默认文案 “分类”
      },
      tag: {
        location: 3,     // 在导航栏菜单中所占的位置，默认3
        text: '标签'      // 默认文案 “标签”
      }
    },
    subSidebar: 'auto',//在所有页面中启用自动生成子侧边栏，原 sidebar 仍然兼容
    sidebar: "auto",//所有页面自动生成侧边栏
    author: "玮哥",
    authorAvatar: "/images/avatar.svg",
    mode: "light", //默认显示模式  modePicker: false 关闭该按钮
    codeTheme: "tomorrow", // default 'tomorrow' okaidia
    record: "蜀ICP备20019955号",
    recordLink: "https://icp.chinaz.com/home/info?host=pengsir.top",
    smooth: "true", //平滑滚动
    // 评论设置 
    valineConfig: {
      appId: private.appId,
      appKey: private.appKey,
      recordIP: true,
      placeholder: '填写邮箱地址可以及时收到回复噢...',
      visitor: true,
    },
    lastUpdated: '最后更新于',
    // , friendLink: [
    //   {
    //     title: '午后南杂',
    //     desc: 'Enjoy when you can, and endure when you must.',
    //     email: 'recoluan@qq.com',
    //     link: 'https://www.recoluan.com'
    //   },
    //   {
    //     title: '唐子涵的博客',
    //     desc: '至于未来会怎么样 反正路还长 天总会亮',
    //     link: 'https://www.zihanzy.com/'
    //   },
    //   {
    //     title: '李Sir的博客',
    //     desc: '活在当下',
    //     link: 'https://heroli.netlify.app/'
    //   },
      

    //   // ...
    // ],
    
    nav: [
      // 导航栏
      { text: "主页", link: "/", icon: "reco-home" },
     
      {
        text: "项目地址",
        icon: 'iconfont icon-tools',
        link: "https://gitee.com/hong-caixia"
      },
      { text: "时间线", link: "/timeline/", icon: "reco-date" },
      {
        text: "关于",
        icon: "reco-message",
        items: [
          {
            text: "关于我",
            link: "/views/About/author",
            icon: "reco-account"
          },
          {
            text: "关于唐玮",
            link: "/views/About/about1",
            icon: "reco-account"
          },
          {
            text: "简历",
            link: "/views/About/resume",
            icon: "reco-document"
          },

          {
            text: "Gitee",
            link: "https://gitee.com/hong-caixia",
            icon: "reco-mayun",
          },
        ]
      }
    ],
  },
  // 项目开始时间
  // startYear: '2017',
  editLinks: true,
  editLinkText: '在 GitHub 上编辑此页 !',
  markdown: {
    lineNumbers: true, //代码显示行号
  }, // 搜索设置
  plugins: {
    //一键复制代码插件: "vuepress-plugin-code-copy": "^1.0.6",
    "vuepress-plugin-code-copy": true,
    // 阅读进度条: "vuepress-plugin-reading-progress": "^1.0.10",
    "reading-progress": true,

    // 分享插件: "vuepress-plugin-social-share": "^1.0.0"
    // "social-share": {
    //   networks: ["qq", "weibo", "email"], //分享类型
    //   qq: "1362941253",
    //   email: "1362941253@mail.com", //email地址
    // },

    // 最后更改时间插件(内置)+moment 格式化为中国地区的样式
    '@vuepress/last-updated': {
      transformer: (timestamp, lang) => {
        return moment(timestamp).format('LLLL')
      }
    },
    // BGM播放器 "@vuepress-reco/vuepress-plugin-bgm-player": "^1.1.3",
    "@vuepress-reco/vuepress-plugin-bgm-player": {
      audios: [
        {
          name: "喜欢你",
          artist: "邓紫棋",
          url:
            "http://music.163.com/song/media/outer/url?id=28949444.mp3",
          cover:
            "https://p1.music.126.net/u_1EudmF8Swgow6vfgYe1g==/8896148580676276.jpg?param=130y130",
        },
        {
          name: "光年之外",
          artist: "邓紫棋",
          url:
            "http://music.163.com/song/media/outer/url?id=28949444.mp3",
          cover:
            "https://p1.music.126.net/fkqFqMaEt0CzxYS-0NpCog==/18587244069235039.jpg?param=130y130",
        },

        {
          name: "攀登",
          artist: "潘玮柏 / G.E.M.邓紫棋 / 艾热 AIR",
          url:
            "http://music.163.com/song/media/outer/url?id=1313107926.mp3",
          cover:
            "https://p1.music.126.net/WlkSXIjLZcenMU1g0anGeg==/109951163589728383.jpg?param=130y130",
        },
        {
          name: "雪 Distance",
          artist: "Capper / 罗言",
          url:
            "http://music.163.com/song/media/outer/url?id=2026224214.mp3",
          cover:
            "https://p2.music.126.net/cGTKkFl5qcXIDYPo7PrmDA==/109951168431655039.jpg?param=130y130",
        },
      ],
    },
    // 看板娘插件 https://github.com/vuepress-reco/vuepress-plugin-kan-ban-niang
    "@vuepress-reco/vuepress-plugin-kan-ban-niang":
    {
      theme: ['z16', 'blackCat', 'whiteCat', 'haru1', 'haru2', 'haruto', 'koharu', 'izumi', 'shizuku', 'wanko', 'miku'],
      clean: false,
      messages: {
        welcome: '我是小花,欢迎你的关注 ',
        home: '心里的花，我想要带你回家。',
        theme: '好吧，希望你能喜欢我的其他小伙伴。',
        close: '再见哦'
      },
      width: 140,
      height: 200,
    },
    // 点击爆炸的彩带效果
    "cursor-effects": {
      size: 2, // size of the particle, default: 2
      shape: ['star' | 'circle'], // shape of the particle, default: 'star'
      zIndex: 99999999999, // z-index property of the canvas, default: 999999999
    },
    'dynamic-title':{
      showIcon: '/images/favicon.ico',
      showText: '(/≧▽≦/)咦！又好了！',
      hideIcon: '/failure.ico',
      hideText: '(●—●)喔哟，崩溃啦！',
      recoverTime: 2000,
    },
  
    //vuepress公告插件 先安装在配置 npm install @vuepress-yard/vuepress-plugin-window --save
   // "@vuepress-yard/vuepress-plugin-window": {
    //  title: "疯狂的地球人@公告",
   //   contentInfo: {
    //    title: "毕设、项目、相关咨询加微信哦~🎉🎉",
     //   needImg: true,
    //    imgUrl: "images/bookbook.png",
     //   content: "",
      //  contentStyle: ""
    //  },
   //   bottomInfo: {
        // btnText: '关于',
        // linkTo: 'https://www.bookbook.cc/views/About/author.html'
    //  },
    // closeOnce: false,
    // hideRouteList
    // }

  }
}
